package com.woniuxy01;

/**
 * @author 作者
 * @create 2025-11-03 11:33
 */
public class Test02 {
    public static void main(String[] args) {
        Student s1=new Student(1,"zs",11);
        Student s2=new Student(1,"zs",11);
//        com.woniuxy01.Student@3b07d329
        System.out.println(s1);
//        com.woniuxy01.Student@41629346
        System.out.println(s2);
        //
        System.out.println(s1==s2);
        System.out.println(s1.equals(s2));

        Teacher t1=new Teacher();
        System.out.println(s1.equals(t1));

    }
}
